package com.sann.common.utils;

import org.apache.commons.lang3.StringUtils;

public class CommonUtil {
    public static void checkNotNull(String str, String msg) {
        if (StringUtils.isBlank(str)) {
            throw new RuntimeException(msg+ " 不能为空");
            //TODO 需要改进,让抛出的GuliException异常交由系统全局过滤器处理,业务代码不用捕获异常
//            throw new GuliException(20001, " 不能为空");
        }
    }
}
